﻿using Practice.PH4_2104A.Shopping.SevenLayerFramework.Domin;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Practice.PH4_2104A.IRepository
{
    public interface ISKURepository
    {
        /// <summary>
        /// 添加一个sku
        /// </summary>
        /// <param name="model"></param>
        void Insert(SKUModel model);

        /// <summary>
        /// 批量添加sku
        /// </summary>
        /// <param name="model"></param>
        void Insert(List<SKUModel> model);

        void Update(SKUModel model);
        void Delete(SKUModel model);

        /// <summary>
        /// 显示sku
        /// </summary>
        /// <returns></returns>
        IQueryable<SKUModel> GetAll();

    }
}
